package com.newx.open.util;

import com.newx.open.sign.NewxSignTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;

/**
 * 管理 newx-open 所有全局组件，可通过此类快速获取、写入各种全局组件对
 * @author yxl
 * @date 2024/7/26 0026 10:25
 */
public class NewxManager {

    private volatile static NewxSignTemplate newxSignTemplate;

    public static NewxSignTemplate getNewxSignTemplate() {
        if (newxSignTemplate == null) {
            synchronized (NewxManager.class) {
                if (newxSignTemplate == null) {
                    NewxManager.newxSignTemplate = new NewxSignTemplate();
                }
            }
        }
        return newxSignTemplate;
    }
}
